import { createRouter, createWebHistory } from 'vue-router'
import HomeView from '../views/Login.vue'

const router = createRouter({
  history: createWebHistory(import.meta.env.BASE_URL),
  routes: [
    
    {
      path: '/',
      component: () => import('../views/Login.vue'),
    },
    {
      path: '/addRoomType',
      component: () => import('../views/RoomType/AddRoomType.vue'),
    },
    {
      path: '/getRoomType',
      component: () => import('../views/RoomType/GetRoomType.vue'),
    },
    {
      path: '/addRoomOrder',
      component: () => import('../views/RoomOrder/AddRoomOrder.vue'),
    },
    {
      path: '/getRoomOrder',
      component: () => import('../views/RoomOrder/GetRoomOrder.vue'),
    },
    {
      path: '/upRoomOrder',
      component: () => import('../views/RoomOrder/UpRoomOrder.vue'),
    },
    {
      path: '/AddpaiRoom',
      component: () => import('../views/PaiRoom/AddPaiRoom.vue'),
    },
    {
      path: '/GetpaiRoom',
      component: () => import('../views/PaiRoom/GetPaiRoom.vue'),
    },
    {
      path: '/InfopaiRoom',
      component: () => import('../views/PaiRoom/InfoPaiRoom.vue'),
    },
  ],
})

export default router
